<?php

function select_playlist($bdd)
{

		$results= $bdd->query('SELECT * FROM playlists');

			
		return $results;
}

function model_cube_sons($bdd, $id_playlist) {

    $results = $bdd->query('
        SELECT DISTINCT s.son_author, s.son_title, s.id_playlist
        FROM playlist_sons s, playlists p
        WHERE s.id_playlist=   '. $id_playlist.'
       ');

    return $results;
}
?>